from fastapi import (
    FastAPI, 
    APIRouter,
    Depends,
    Body,
)

class VersionApi:
    def router():
        router = APIRouter(
            prefix = "/api/version",
            tags = ["版本管理"],
            responses = {404: {"description": "Not found"}},
        )
        
        @router.get("/getBackVersion", 
                        summary="获取工作区目录信息")
        async def getBackVersion():             
            return "0.0.1"
        
        return router